@echo off
set SERVICEURL=http://zombator.ru/services/smartdating/ServicePrototype.svc?wsdl

set OLDDIR=%CD%
cd ..
set SVCDIR=%CD%
cd %OLDDIR%

echo This will generate Java binding for Smart Dating Web Service
echo Using the following WSDL URL:
echo     %SERVICEURL%
echo Press Enter to continue.
pause > nul

echo ==== Removing Source and Classes Directories =====
rd /q /s bin\ > nul 2> nul
rd /q /s src\ > nul 2> nul

echo ==== Generating Java Sources and Class files =====
md src
md bin
"C:\Program Files\Java\jdk1.6.0_22\bin\wsimport.exe" -d bin -s src %SERVICEURL%

echo ====================== DONE! =====================